﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Caching;

namespace LakeSide.Core.Caching
{
    /// <summary>
    /// 缓存接口
    /// </summary>
    public interface ICacheManager
    {

        void Insert(string Key, object Obj, double TimeOut, CacheItemPriority Priority);

        void Insert(string Key, object Obj, CacheDependency Dependency, double TimeOut, TimeSpan SlidingExpiration, CacheItemPriority Priority, CacheItemRemovedCallback RemovedCallback);

        object Get(string Key);

        void Remove(string Key);

        void RemoveByPattern(string pattern);

        void Clear();

        Dictionary<byte, string> CacheItemPriorities();
    }
}
